﻿@using SimpleScrum.Utils
@model SimpleScrum.Core.Entities.Project
@{
    ViewBag.Title = " Project Information";
}
<div class="breadcrumbs" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="@Url.Action("Index","DashBoard")">Home</a>
            <span class="divider">
                <i class="icon-angle-right arrow-icon"></i>
            </span>
        </li>
        <li>
            <a href="@Url.Action("Index","Project")">Projects</a>
            <span class="divider">
                <i class="icon-angle-right arrow-icon"></i>
            </span>
        </li>
        <li class="active">@Model.Name</li>
    </ul>
    <div class="nav-search pull-right">
        <a class="btn btn-small btn-yellow" href="@Url.Action("Edit","Project",new {id = Model.Id})">
            <i class="icon-edit-sign"></i> Edit
        </a>
        <a class="btn btn-small btn-grey" href="@Url.Action("Index","Project")">
            <i class="icon-list-alt"></i> All Projects
        </a>
        <a class="btn btn-small btn-success" href="@Url.Action("New","Project")">
            <i class="icon-plus-sign-alt"></i> New Project
        </a>
    </div>
    
</div>
<div class="page-content">
    <div class="page-header position-relative">
        <h1>@ViewBag.Title<small><i class="icon-double-angle-right"></i>@ViewBag.Message</small>
            @if (@Model.Id != Client.Instance.DefaultProjectId)
            {
                <a class="btn btn-light radius-4" href="@Url.Action("SetAsDefaultProject", "Initialize", new { id = @Model.Id })">
                    <i class="icon-th-large"></i>
                    set as default
                </a>
            }
        </h1>
    </div><!--/.page-header-->
    <div class="row-fluid">
        <div class="widget-container-span">
            <div class="widget-box">
                <div class="widget-header">
                    <h5>@Html.DisplayFor(model => model.Name)</h5>
                    <div class="widget-toolbar">
                        <a href="#" data-action="reload"><i class="icon-refresh"></i></a>
                        <a href="#" data-action="collapse"><i class="icon-chevron-up"></i></a>
                    </div>
                    <div class="widget-body">
                        <div class="widget-main">
                            <p class="alert alert-info">@Html.DisplayFor(model => model.Description) </p>
                            <p class="alert alert-success">
                                @Html.ActionLink("Your UserStory", "Index", "UserStory", new { ProjectId=Model.Id }, new {@class="btn btn-info"})
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>